<template>
  <!-- 新增上传画面对话框-->
  <el-dialog
    :title="title"
    center
    :visible.sync="openState"
    width="1024px"
    :close-on-click-modal="false"
    :before-close="handleClose"
    :append-to-body= "true"
  >
    <el-form ref="editForm" :model="form" :rules="rules" label-width="130px" disabled>
      <!--交易础信息-->
      <el-card class="form-card txnInfo-card">
        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="参与机构清算行号" prop="bankAgent">
              <el-input v-model="form.bankAgent" />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="参与机构行别" prop="bankType">
              <el-input v-model="form.bankType" />
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="参与机构" prop="brno">
              <el-input v-model="form.brno" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="参与机构名称" prop="category">
              <el-input v-model="form.brname" />
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="参与机构别名" prop="braliasname">
              <el-input v-model="form.braliasname" />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="参与机构类型" prop="bankCatalog">
              <el-select style="width: 100%;" v-model="form.bankCatalog" placeholder="参与机构类型">
                <el-option
                  v-for="dict in dictMap.PT_TYPE"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="机构所属CCPC" prop="bankCenter">
              <el-input v-model="form.bankCenter" />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="状态" prop="bankStatus">
              <el-select style="width: 100%;" v-model="form.bankStatus" placeholder="状态">
                <el-option
                  v-for="dict in dictMap.IBPS_BANK_STATUS"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="加入日期" prop="effDate">
              <el-date-picker style="width: 100%;" v-model="form.effDate" value-format="yyyyMMdd"
                              type="date"
              />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="退出日期" prop="invDate">
              <el-date-picker style="width: 100%;" v-model="form.invDate" value-format="yyyyMMdd"
                              type="date"
              />
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="证书绑定状态" prop="certBindStat">
              <el-select style="width: 100%;" v-model="form.certBindStat" placeholder="状态">
                <el-option
                  v-for="dict in dictMap.IBPS_CERT_BIND_STAT"
                  :key="dict.value"
                  :label="`${dict.value}-${dict.text}`"
                  :value="dict.value"
                ></el-option>
              </el-select>
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="证书DN" prop="certDn">
              <el-input v-model="form.certDn" />
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="证书SN" prop="joinBizFlag">
              <el-input v-model="form.joinBizFlag" />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="证书有效期起始日期" prop="certDateBegin">
              <el-date-picker style="width: 100%;" v-model="form.certDateBegin" value-format="yyyyMMdd"
                              type="date"
              />
            </el-form-item>
          </el-col>
        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="证书有效期结束日期" prop="certDateEnd">
              <el-date-picker style="width: 100%;" v-model="form.certDateEnd" value-format="yyyyMMdd"
                              type="date"
              />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="证书绑定日期" prop="certBindDate">
              <el-date-picker style="width: 100%;" v-model="form.certBindDate" value-format="yyyyMMdd"
                              type="date"
              />
            </el-form-item>
          </el-col>

        </el-row>

        <el-row type="flex">
          <el-col :span="12">
            <el-form-item label="证书绑定时间" prop="certBindTime">
              <el-date-picker style="width: 100%;" v-model="form.certBindTime" value-format="yyyyMMddHHmmss"
                              type="datetime"
              />
            </el-form-item>
          </el-col>

          <el-col :span="12">
            <el-form-item label="公钥证书" prop="certBody">
              <el-input v-model="form.certBody" />
            </el-form-item>
          </el-col>

        </el-row>
      </el-card>




    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="cancel">关 闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
import HtAmountInput from "@/views/components/HtAmountInput";
import HtAmountUpper from "@/views/components/HtAmountUpper";

export default {
  name: "bankBranchDetail",
  components: {
    HtAmountInput,
    HtAmountUpper,
  },
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      busTypeList: [],
      id: "",
      title: "",
      pkgNo: "",
      // 是否显示弹出层
      openState: false,
      ifShowDelBtn: false,
      isEdit: false,

      // 字段可编辑控制

      // 表单参数
      form: {
        amount: 0.00,
        curcd: "CNY",
      },
      // 表单校验
      rules: {

      },
    };
  },
  mounted() {
  },
  computed: {
  },
  methods: {
    // 表单重置
    reset() {
      this.resetForm("editForm");
      this.$set(this, "form", {});
    },
    // 关闭回掉
    handleClose(done) {
      this.reset();
      done();
    },

    show(row) {
      this.reset();
      this.title = "IBPS行名行号查询明细";
      this.openState = true;
      this.ifShowDelBtn = false;
      this.$set(this, "form", row);
    },
    cancel() {
      this.openState = false;
    },



  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
